local FightConst = {}

FightConst.FRIEND_STANDING = 1
FightConst.ENEMY_STANDING = 2

FightConst.USER_AUTO_DELAY = 1

FightConst.TARGET_ENEMY = 1 -- 攻击目标为敌人
FightConst.TARGET_FRIEND = 2 -- 攻击目为友方

FightConst.DEFENSE_FIX_RATIO = 800 -- 防御减伤公式固定系数
FightConst.PIERCE_FIX_RATIO = 400

FightConst.Z_RATIO = {
  [FightConst.FRIEND_STANDING] = -1,
  [FightConst.ENEMY_STANDING] = 1
}

-- 种族
FightConst.RACE_TERRAN = 1 -- 人族
FightConst.RACE_MOZU = 2 -- 魔族
FightConst.RACE_FAIRYCLAN = 3 -- 仙族
FightConst.RACE_YAOZU = 4 -- 妖族

-- 性别
FightConst.SEX_NONE = 0 -- 无
FightConst.SEX_MAN = 1 -- 男
FightConst.SEX_WOMAN = 2 -- 女

-- buff检测时间
FightConst.BUFF_ROUND = 1 -- 回合检测
FightConst.BUFF_ACTION_BEGIN = 2 -- 行动开始检测
FightConst.BUFF_ACTION_END = 3 -- 行动结束检测

-- buff作用时间
FightConst.BUFF_EFF_IMMEDIATELY = 1 -- 立刻作用
FightConst.BUFF_EFF_CHECK = 2 -- 检测时作用
FightConst.BUFF_SKILL_ATTACK_B = 3 -- 攻击敌人前
FightConst.BUFF_SKILL_ATTACK_A = 4 -- 攻击敌人后
FightConst.BUFF_BE_HURT_B = 5 -- 被攻击前
FightConst.BUFF_BE_HURT_A = 6 -- 被攻击后
FightConst.BUFF_SKILL_ATTACK_T = 7 -- 攻击敌人时

-- 技能作用方
FightConst.SKILL_ATTACK_ENEMY = 1 -- 攻击敌人
FightConst.SKILL_ATTACK_FRIEND = 2 -- 攻击友方

-- 技能作用目标选择
FightConst.SKILL_TARGET_SINGLE = 1 -- 单人
FightConst.SKILL_TARGET_ALL = 2 -- 全体
FightConst.SKILL_TARGET_COLUMN = 3 -- 一列
FightConst.SKILL_TARGET_ROW = 4 -- 一行
FightConst.SKILL_TARGET_RANDOM = 5 -- 随机
FightConst.SKILL_TARGET_CALL = 6 -- 召唤

FightConst.MAX_BUFF = 3 -- 技能最大产生buff数量

FightConst.CALL_OBJ_HATRED = 1 -- 仇恨型召唤物（敌方不打死他无法打友方）
FightConst.CALL_OBJ_ATTACK = 2 -- 攻击型召唤物（友方攻击之后进行协同攻击）
FightConst.CALL_OBJ_INHERIT = 3 -- 继承型召唤物（与正常战斗实体一般）

--召唤物位置类型
FightConst.CALL_OBJ_POS_CEN = 1
FightConst.CALL_OBJ_POS_SID = 2
FightConst.CALL_OBJ_POS_APP = 3

-- buff操作
FightConst.BUFF_ADD = 1 -- 添加buff
FightConst.BUFF_REMOVE = 2 -- 删除buff
FightConst.BUFF_AFFECT = 3 -- buff作用
FightConst.BUFF_EFFECT_NAME = {
  [FightConst.BUFF_ADD] = "buff_add",
  [FightConst.BUFF_REMOVE] = "buff_remove",
  [FightConst.BUFF_AFFECT] = "buff_affect"
}
--------

-- 战斗实体类型
FightConst.ENTITY_CLASS_STA = "StandingEntity"
FightConst.ENTITY_CLASS_COL = "CollaborationEntity"

-- 战斗效果触发
FightConst.EFFECT_TRIGGER_ROUND = 1
FightConst.EFFECT_TRIGGER_SHEILD = 2
FightConst.EFFECT_TRIGGER_SKILL = 3
FightConst.EFFECT_TRIGGER_HURT = 4
FightConst.EFFECT_TRIGGER_ATTACK = 5
FightConst.EFFECT_TRIGGER_HURT_TIME = 6

-- 战报类型
FightConst.BATTLE_TYPE_BUFF = "buff_battle"
FightConst.BATTLE_TYPE_SHEILD = "sheild_battle"
FightConst.BATTLE_TYPE_DIE = "die_battle"
FightConst.BATTLE_TYPE_CALL = "call_battle"
FightConst.BATTLE_TYPE_SUBHURT = "subhurt_battle"
FightConst.BATTLE_TYPE_FIGHTEFFECT = "fighteffect_battle"
FightConst.BATTLE_TYPE_HELP = "helpattack_battle"
FightConst.BATTLE_TYPE_COUNTER = "counter_battle"

return FightConst
